package service

import (
	"context"
	"crypto/md5"
	"fmt"
)

type TextService struct {

}

func (ts*TextService)DoMD5(ctx context.Context,req *Req)(res *Res,err error)  {
	fmt.Println("MD5方法请求JSON:"+req.JsonStr)
	return &Res{BackJson: "MD5 :" + fmt.Sprintf("%x", md5.Sum([]byte(req.JsonStr)))}, nil

}
